﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using GameBase;

namespace GalaxyPresident
{
    class Text
    {
        public static void Draw(SpriteBatch spriteBatch, string text, float x, float y)
        {
            Draw(spriteBatch, text, Constant.fontNormal, new Vector2(x, y),
                Color.White, 0.1f);
        }
        public static void Draw(SpriteBatch spriteBatch, string text, float x, float y, Color color)
        {
            Draw(spriteBatch, text, Constant.fontNormal, new Vector2(x, y), color, 0.1f);
        }
        public static void Draw(SpriteBatch spriteBatch, string text, SpriteFont font,
           float x, float y)
        {
            Draw(spriteBatch, text, font, new Vector2(x, y), Color.White, 0.1f);
        }
        public static void Draw(SpriteBatch spriteBatch, string text, SpriteFont font,
           float x, float y, Color color)
        {
            Draw(spriteBatch, text, font, new Vector2(x,y), color, 0.1f);
        }
        public static void Draw(SpriteBatch spriteBatch,string text,SpriteFont font,
            Vector2 position, Color color)
        {
            Draw(spriteBatch, text, font, position, color, 0.1f);
        }
        public static void Draw(SpriteBatch spriteBatch, string text, SpriteFont font,
            Vector2 position, Color color,float depth)
        {
            spriteBatch.DrawString(font, text, position, color, 0, Vector2.Zero, 1, SpriteEffects.None, depth);
        }

        public static void Draw(SpriteBatch spriteBatch, string text, SpriteFont font,
           float x, float y, Color color, Color shadowColor)
        {
            Draw(spriteBatch, text, font, new Vector2(x+1, y+1), shadowColor, 0.1000001f);
            Draw(spriteBatch, text, font, new Vector2(x, y), color, 0.1f);
        }
    }
}
